Added sequence javascript