Add abstraction for datas on view transformation

Signed-off-by: Richard Lea <chigix@zoho.com>
Fix error type for the log string 'css' to 'js'

Signed-off-by: Richard Lea <chigix@zoho.com>