change jsfile from sprite to tile