refactor bulk_transfer javascript into classes