Added temporary card move logic.
Moved js into seperate files.