Added some javscript tweaks
various tweaks