Fix config
Split into multiple js files

I should have done that a long time ago...