Clearing JavaScript warnings on variable declarations without var keyword