moving logic to js/godrawingboard.js
history is working :)