mv JS out of PHP file