Main login javascript file