finished javascript objectes and scopes