Fixed error in javascript.