Hello Stian, thanks for the question.
Well, i use some yeoman generators with bower and grunt.js, this tools are my first option to build any type of application. With AngularJS all the code are compiled before rendered on browser.
if you are beginning to use JavaScript in Single Page Application now, I recommend that you use a code generator for Angular as example. Most of them are build with best practices, already include some testing library.
When starting with JavaScript is very easy to do wrong things, because JS is very flexible, pay attention on design patterns and best practices to write a consistent JavaScript code, this will save a lot of tome.