Updating js to fix loader