loads and executes external javascript based on viewport width and given breakpoints