Fix for #1237

Only set crossorigin on the element if something is specified
Update test for fix of #1237
test build
Merge pull request #1282 from wilsonwc/master

Fix for #1237