Include JS files. fix immediate script errors