and fix the js