added extendjs and new JS structure