Adding gem therubyracer to handle javascript runtime error