Changed directive attributes to allow ie8 support.