javascript timing alerted
moved timer functionality to codesample controller