updated readme; js refactoring