Movement arrows not working

Hi,
I was just cheking out the demo, and seems like the movement/navigation arrows were not reesponding to mousedowns.
Maybe it is because of the misplaced for-loop ending, the movement table with action listener were not available in DOM.
Please do a pull if you need this fix.