demo page, separate .as file, simplified as code