Add contentloaded.js to speed up loading of script. Fixes #1