move views.js to commonplace
prettier tests