Small JS/PHP conversion fix.