Removed unused JS functions
Scoped pad2 function to the one place that it's called