JS to check input on basket