When in doubt: moar javascript