split out javascript into separate files, include jasmine, start writing specs