add javascript reference, output