login.js remove outside dependency

removed dependency on remote host