Absolute paths for getJS and getCSS

These now use getBase() to ensure that pages outside the normal
/index.php (such as /API/generator.php) still get the right path to
static files.