phpify the example page and add a js base

added slider, modal windows and a js base.