add jasmine test framework and basic spec
move onload stuff to separate file