trying to get js to work