Jade-JS-Media-Conversion

Converted JS code to Jade.