You can see how the error presents itself in the attached image. I tried googling a little bit and a host of different solutions popped up, some saying it was related to memory allocation, while others recommended changing enabling JS by modifying some flag while compiling the stylesheet.
If anyone has run into this issue before and managed to solve it, please reply.
P.S. While installing Bahmni, I followed the steps outlined here: Bahmni Installation on CentOS