changed javascript namespace structure