Hi Johan,
You can include .js files in the WebServer procedure, Scripts, Files tab.
You can include specific JavaScript code on a page using the p_web.Script method.
More than that depends on what you want to do, and in what context (ie which procedure type etc.)
cheers
Bruce