Encapsulate functionality into object so it can be reused without touching its guts (also the functions are shorter)
updating mozilla example with new init code
PRINT!!!
make it a bit more modular