add jspath module
states refactoring
fix tileType change