javascript bug fix on next page button