WIP - ugh, javascript debugging