fix serializing views for server
make jshint happy
0.6.0-alpha21