Fix js error using first name in render script