more spin.js porting
style updates due to spin.js porting
Merge pull request #78 from git-marijus/master

some more spin.js porting