Added type information and 'use strict'
Added type information and 'use strict'. Fixed bug where function did not return value. Added missing semicolon