implented head.js, cleaned up js, and fixed stubbed radio button selected value