Create function for initialising routine
switch to an OO architecture straight away, before refactoring becomes a pain
add utility functions for dealing with beats
add unit tests for beat.js
set test in package.json
add travis config file