Added video buffering event

- Subtitle display is now paused if the video starts buffering.
- Fixed some JSHint issues.