javascript support + media decoding fixing