JS support for twitter card