strip js postfix from paths

eg for extjs, deftjs or densajs