fixed console being compiled into non-display projects (like php)
minor js fixes