removed debug in javascript code