fix wrong working in js if `status_id` is string

use parseInt(status_id)

closes #262