Trailing whitespace removal
Correction of missing tag and ways of notating the jQuery function
Generic analytics substitution