adding javascript functionality
 finished adding all js and styling for the previewable sections