Don't declare each variable with its own var. Use one var only on the very first one.