completed js version of 1.1
modified readme