Update Frames.js

Added code comments and explained the usage