Have you added it to a separate file? In that case you need to load it. Scripts and style sheets are added here: https://github.com/owncloud/contacts/blob/master/lib/controller/pagecontroller.php#L54