Added js variable exports to init too