Javascript modularize optimzation

Remove CardService.js to Module
Use callback pattern for ajax