playing around with writing compiler in js
oops