Fixed import outputs

They now use the regular API, so JS prints out the display (instead of
PHP).