fix on a couple of bugs issues with prevent defaults not being put so the javascript not running