Adjust script for use with mixin for CSS-triangle