Fixed JS runtime issue faced in EC2