Refactoring a client's front-end

Finding some weird code.. digging deeper!