JS Update

Tried adding applyHeight function before document ready to achieve
proper resizing of samples.