Refinement Types for Scripting Languages