Fixing bug due to JavaScript comment