JS additions

Added global variables, added log function, added Question constructor