Update slimmage.js

Redeclaration of pre-defined var; missing semi-colon on log (inconsistent format) 
Might be worth adding jslint settings to the top of this