format code as javascript