fixed tons of formatting, removed excessive use of dojo/query