added some more to the js-lib
Merge pull request #2 from vikre/jslib

added some more to the js-lib