Fit better as a plug-and-play script

Added a XHTML ( mostly because of your linking style i.e. <link ... />) boilerplate and minor naming changes to fit better as a plug-and-play script. loader and spinner are way too common names to be used as id and class names.