javascript in additional info page buggy as hell