started factoring jquery and cleaning up html and adding necessary css