initialize on_message_lookup only when login checks passed
use strict in javascript. set validthis jshint option where applicable.