Seperated object initialazation from js file