add javascript functionality