Resolved js syntax error for Law-res pg