A nice article explaining the separation of Model (xhtml) View (css) and Controller (javascript)