Removed doc.ready LAR call, added console handler