Fix bug load javascript global var in login

* Used layout in login + install home & upgrade home
* Clean files in login