Updating js for loader