reorganizing javascript source
adding pom