Split into individual files. Add models for probability & settings. Inject dependencies from the top
Add basic shell for HTML page