First pass at Repeater.js, move event definitions to top of file.