Refactor, improve and fixed invalid js

git-svn-id: http://primefaces.googlecode.com/svn/primefaces/trunk@9427 5a70e874-a5cb-11dd-8af2-493fb0bb9f7c
Fixed invalid css append

git-svn-id: http://primefaces.googlecode.com/svn/primefaces/trunk@9428 5a70e874-a5cb-11dd-8af2-493fb0bb9f7c
Fix horizontal tree visuals

git-svn-id: http://primefaces.googlecode.com/svn/primefaces/trunk@9429 5a70e874-a5cb-11dd-8af2-493fb0bb9f7c