core javascript initiation file

nice code. any way to tidy it up more?
you could change this console log comment really. It's a bit naff.