LPS-34706 move js code to the right jsp