Add Model.getObject and fixes js styles