fix errors identified by jshint and add properties to layout objects in the pixel framework