fix for issue #1 Uncaught TypeError: Cannot call method 'moveBall' of undefined