Move sprite function to sprite.js
Merge branch 'develop' into removeMobileConditions

Conflicts:
	src/viewport.js