added javascript model