Moving startup code out of JS file
Passing config as hash