error handling for iframe
using jsMolCalc locally