Added debounce on resize
Fixed Snap mock

Also fixed JSHint errors