Fixed the js for onestop