Update picMap.js

added get script function to include array