Addding debug info to js