Clean up

Added jquery boilerplate code. Minor cleanup.