reload js fix (closes #238)