Saving page width with JS to Mongo