Fixed variable ordering and moved the initialization check into the bookmarklet