Added boilerplate HTML with jQuery if it isn't present

This pull request parameterises to set class selectors for the boilerplate HTML elements, also creates the elements if they're not present.