Fixed a cucumber test issue caused by javascript.