Architecture change: Using boilerplate instead of adding function to jQuery