Javascript animation in editor

is there a way to see js animations in the editor itself?

No. JavaScript is disabled in the editor for security. You have to preview in a browser.