JS all in 1 file now - global variables problem fixed, but an extremely slight performance drop (I hate my brain)