Support js for directory paths