Add QUnit test for initOperation, change style buttons
Remove global var props
Fix some JSLint issues