Potential JS seperation??

An attempt to split parts of the JS up?