added css and javascript support for advanced interface + moved head
links generation in main library