fixed raise AttributeError in javascript mode. updated README.