Update csphotoselector.js

reverting for a better change