reading of js scripts wasn't working.