fixed bugs in recipes js