When this is invoked, phpWS tries to pull the js files from a nonexistent directory.
The problem is actually a bug in /mod/layout/class/Layout.php
Line 715 needs to be changed from this:
$base = PHPWS_SOURCE_DIR . "mod/$module";
to this:
$base = "mod/$module/";