refactored cartodb in to js library, started on address search