Top 5

For #11

This is first pass. My js is so bad now :((((((
`array` isn't used, so I think its better to leave it out of the signature here