Fixed js error on crud,