The PHP class for loading javascript is working