Added javascript to login and account views