Template for a web-based tile game using jQuery UI