move all javascript into cards+status