add javascript to list