Move JS to its own dir.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>