output as javascript