Minor css padding changes.
Cleanup of the template and JS code.