array_merge with JavaScript