add javascript model