Tip: If you are loading any asset (script, font, image etc), don't forget to add if (LOADING > 0) return; at the beginning of your update and draw functions.
if (LOADING > 0) return;
update
draw