Some JavaScript code about Media, Picture