tern mappings, autoclose tern preview