javascript changes

I changed the javascript implementation:
proper enqueue according to wordpress codex

TODO: (maybe you @fracek can help) load js only if widget is present on page