Fix my lack of JS skillz