Rect2XYs, JavaScript/phpテストケース追加

Signed-off-by: OHTSUKA Ko-hei <kochizufan@gmail.com>