If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
To become Scarlet's apprentice you need to practice magic! Study the magic spell book and learn the spells and the ingredients needed to make the spell. Click on the spell book to study it and select the spell you want to learn.
Use mouse to interact.