Fixed object loading and added "use strict"