solved 2 bugs
added an return where one was missing and changed the name of two
constants which are different from those in the ccbi files which the
cocosbuilder generates. This bug generates in Firefox  popups.