Prototypes and Functions play nicely!

After several hours of sleep deprived programming, I got what I
deserved. Highly coupled code that would in no means be maintainable in
the long or even short term. It is unsuitable for real world application
but then again, so is not sleeping for an entire day.