Added javascript code for a query in report