onReady() error [SOLVED]

Add debugger; or console.log to the functions to see where it stops.
Roi.