fix typo and change method name following airjs update.
added init method.