Allow users to be excluded from imports and JS inclusion

cc @eoin