Instead of defining a new function here, just inline it where you define var project above, please.

Thanks! =)