Online GHOST using angular-js