Minor fixes for #6 and jslint
Note
Fix #7; set height after all images loaded