fix return value from popup.open()
viewport jshint fix
jshint fixes, squash to 03876d6