javascript structure, libs, main.xhtml