added 'use strict' and changed some indentation styles.