move startup js into example file for isolation/shared usage