Update comments and split out javascript from views of user module.