Python Break Vs Continue Javascript Console Is Undefined