A simple JavaScript lazy loader