Update jquery.spritely.js

Fix spRandom call before $._spritely.instances be created
Fix style and variable scope