base js code of MyOcean