Clean up JS code #1078 (also old code removed)
Clean up JS code #1078 (also old code removed)

JC5/firefly-iii,firefly-iii/firefly-iii,firefly-iii/firefly-iii,firefly-iii/firefly-iii,firefly-iii/firefly-iii,JC5/firefly-iii