fixed url management in map js generator