2017-08-19, 18:25:32
The file is called "functions.php" not "function.php" and it automatically included by GS every time a page is loaded on your site.
It may be that you are trying to mix PHP and Javascript here, it will not work...
Code:
<?php $phpval = '" + val + "'; ?>