using jquery to make UI for games