changed the way the javascript code looks.