fixed jshint fail
Added quick test to tests/index.html for Hosted buttons
Check validate for required and pattern