updated contextPath to be communicated to js layer