Update /javascript/functions.js

Added Login() function