clean up the mappbox js code