Enhanced error message in JavaScript sanity tests

Change-Id: I171b00275a770612ffd45d4d99f23d4788980559