How do you get the contextPath from JavaScript, the right way? How do you get the contextPath from JavaScript, the right way? javascript javascript