modularize components
more consistant var names
move deps to local directory
convert function declarations to function expressions