Ran through JSHint to clean up the code a little bit

Changed some new Array() to [] and fixed a lot of missing semi-colons.