Fix js reports; TypeError: /([a-zA-Z]+):/.exec(...) is null

Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>