refactoring new card internals

The javascript now uses a return html fragment from the backend and
prepends it into the planning column.