changed jQueryUI template to flick, from google's cdn
Refactoring: separate js files