Added 'use strict' and fixed bug in Model