JS chart now dynamic from form