javascript bug fixes
javascript bug fix