Correcting link and boling Hoisting Keyword with JavaScript