modularized login.html by using an external js file instead of an embeded js code