Changed project structure to ease development of different js targets.