Consider JavaScript Closure. fixes #4
練習亂數. fixes #5
獨立出JavaScript程式碼 (main.js) fixes #6