Wrote fucking great javascript