separated out dates and costs into different divs
moved javascript into head tag