Added js code to support duration/seekable on `canplay`