Fork javascript