small fixes
more fixes
more fixes and js printer refactoring
Merge pull request #4 from vapolyakov/master

small fixes & js printer refactoring