How To Avoid Hoisting In Javascript