Rewrite to use let
Added node package
Fixed amd and console
Updated readme