Improved fromjs example