Separate the script from html file for gameplay.

Signed-off-by: tungpham31 <tungpham31@gmail.com>