separate js from jsp. tidy js