restructured frontend js, added backbone