add jasmine tests
update main files
add jslint helpers to most js files