[js] Adding detection for whether the single view contains a video or photo
- Also, re-render like buttons