Client side js code for gaming interface.