javascript for the webpage. Only login and studenthome use it right now.