javascript main() stubs