refactor to use let
use 1.8.7 hash syntax
Merge pull request #116 from kchien/refactor_v3

Refactor v3