Split JS in several files according to their logic. Minor changes in
JSP.