Shell Get Function Javascript