fixing the js and the paths tot he js