[javascript] Is it possible to wait until all javascript files are loaded before executing javascript code?