tried to get javascript to work