add javascript to spec