got javascript working