Fix javascript for expand details. Fixes #85