cleans code and fixes url generation of javascript jane