more attempts at getting js to work