Add missing javascript import fixes #501