Setup the JS key too if we have it - it's optional.

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