Changed indentation to standard javascript indentation