Removed a duplicate line of code calling a javascript.