fixed js resource not loading due to relative path issues