add library reference to index.php