fixed issues with grunt build, added script linker function.