make js ast append method to work with function wrapped modules