add function display in js

Signed-off-by: Thawatchai-T <Thawatchai.T@carpass.co.th>