Fix js validation bug with prereqs