Malloc Dynamic Array In Javascript Example