added url encoding on the js links