javascript: use %include directive to include external javascript files