Forgot to update index.php

Changed variable names, introduced $context, default template layers.