resturcturing angular javascript/coffeescript files