added in checking of results and changed rake tasks a bit to break out library js export