fixes some of the work done to the js