fix #183 simple js version