jslinted and console.log added