render code as javascript