added js to php declarations