relocated jquery shake method