removed tabs and followed JavaScript: The Good Parts
Will run jslint thru this soon