html moai app adjusted to new lua ref system