moving initializer to rb instead of js