added init and update revised card interface

we integrated the init function as a external javascipt file and added
within our revised card interface