small amends, from jslint warnings
small amend when defining imagesloaded