WIP: transferring javascript to controller file

Signed-off-by: Alan Gardner <alan@armoin.com>
Adding javascript tests for the remaining Add To Scrapbooks funtionality

Signed-off-by: Alan Gardner <alan@armoin.com>