Begin to move javascript to sep. files, work on better component selection.