change the code more JS-ish
Merge branch 'master' of https://github.com/ynaoto/ynaoto.github.io