added partial Metro JS support