learn js frame