Modal Div, Passing Card Index

JavaScript Cleanup and namespacing to be implemented