Sample login page with JavaScript