add javascript object model.