Update view.js

Add support for copying number to clipboard
fix a few semicolon issues