refactor to pass jslint check and set version to 0.1.4