using gem instead of js