support localJS in login