Fix type of js