structure javascripts, separeate to more objects and packages
structure JS 2