Refactor javascript sources for user dashboard

Signed-off-by: Eduardo Bautista <eduardo.bautista@crowdint.com>