change js data path from absolute to relative