First pass for Atmosphere/atmosphere-javascript#86