Chinese Chess using JS with library jquery and understore.js