Got picky about the JS formatting. Going to bed now...