got javascript to work