Add javascript model's test