Fixed regex pattern

Fixed bug where validator wouldn't pass urls like "http://static.gamespot.com".

Also some small fixes for JSHint.