Fixed contextpath javascript defects in multiple places