split browser entry point from main application code