adjust analyzed meter width to meter length

- put all of metronome.js is in a document.ready call
moves saveNewMeter logic to metronome
debug: item display after shortening meter