getting js to work