reorganize javascripts, follow DBA tut