added params controller check for js