Moved script from jsp to js file