Added 'use strict' and cleaner example code