Add default javascript settings
Various tweaks