changed js versions, added debugging