basic main js scaffold