add a javascript model