Changed to using 'js.Dynamic.literal' for attr etc.