But the Java scripts works perfect without using the photo rewrite. However, here is what you requested:
/var/www/domain.com/www/root/wraps/photo/scripts.js
domain.com/wraps/photo/scripts.js (you can view the source here)
a example page is:
http://mqsto.com/photo/displayimage.php?pid=92
after it is rewrited it is:
http://mqsto.com/photo/92