Add jQuery (2.1.0)
Remove unused JS functions.
Remove duplicate JS script invocation.
Extract some JS code out into an external file.