gcj: added PHP algorithm
gcj: added JS algorithm