Added text loading in javascript.